home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / tbmask / readme.txt < prev   
Text File  |  1993-12-13  |  2KB  |  49 lines

  1.  
  2. I've been having trouble with the MSMASKED.VBX so this is an 
  3. attempt to do masked input in a regular VB text box. You can take 
  4. a look at how the input works by running the example program.
  5.  
  6. It will handle simple masked input situations such as a date, a phone 
  7. number, or a decimal number (with or without a dollar sign).  It won't
  8. work if you place an immutable character at the end of the mask and 
  9. it won't handle commas in a numeric field.
  10.  
  11. When entering a decimal number, the digits to the left of the decimal 
  12. will be automatically repositioned when you enter the decimal.
  13.  
  14. Input is always in OverWrite Mode rather than Insert Mode.
  15.  
  16. The following subroutines are in MASKPROC.BAS
  17.  
  18.   AddZeros -> if you are leaving the text box, this will automatically
  19.   replace any spaces after the decimal with zeros.
  20.  
  21.   IsADot -> looks to see if there is a decimal in the mask. The
  22.   variable DOTCOUNT contains the number of decimals (periods) found 
  23.   and WHEREDOT is the position of the decimal.
  24.  
  25.   KeyData ->  handles keyboard input of data and presses of the
  26.   BackSpace Key.
  27.   
  28.   KeyDelete -> handles presses of the Delete Key.
  29.  
  30.   PutCursor -> places the cursor after any immutable characters
  31.   when the text box receive focus.
  32.  
  33. Look at the events for each Text Box to see where the Subroutines
  34. are called.
  35.  
  36. The masks are in form_load.
  37.  
  38. If you find any or all of this to be useful, feel free to use it anywhere
  39. you like.  No cost, no warranty.
  40.  
  41. Feel free to send any comments my way.
  42.  
  43. Bob Craig   CompuServe:  70042,1041         Dec 14/93
  44. Salt Spring Island, BC, Canada
  45.  
  46.  
  47.  
  48.  
  49.